
import { JsonUtil } from "db://app-game/core/utils/JsonUtil";

export class TableEffects {
    static TableName: string = "Effects";

    public data: any;

    init(id: number) {
        var table = JsonUtil.get(TableEffects.TableName);
        this.data = table[id];
        this.id = id;
    }

    /** 编号【KEY】 */
    id: number = 0;

    /** 特效名称 */
    get name(): string {
        return this.data.name;
    }
    /** 特效描述 */
    get description(): string {
        return this.data.description;
    }
    /** 预制件路径 */
    get prefabPath(): string {
        return this.data.prefabPath;
    }
}
    